package com.xuecheng.manage_cms.service;

import com.xuecheng.framework.domain.cms.CmsConfig;
import com.xuecheng.framework.domain.cms.CmsPage;
import com.xuecheng.framework.domain.cms.request.QueryPageRequest;
import com.xuecheng.framework.domain.cms.response.CmsPageResult;
import com.xuecheng.framework.domain.course.CourseBase;
import com.xuecheng.framework.model.response.QueryResponseResult;
import com.xuecheng.framework.model.response.ResponseResult;
import org.springframework.stereotype.Component;

@Component
public interface PageService {

    QueryResponseResult<CourseBase> findList(int page, int size, QueryPageRequest queryPageRequest);

     CmsPageResult add(CmsPage cmsPage);


    CmsConfig getConfigById(String id);

    ResponseResult post(String pageId);

     String getPageHtml(String pageId);

    ResponseResult delete(String id);

    CmsPageResult update(String id, CmsPage cmsPage);

    CmsPage getById(String id);
}
